﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Services.Client;
using Microsoft.Samples.ServiceHosting.StorageClient;
using Microsoft.ServiceHosting.ServiceRuntime;

namespace HollywoodHackers.Storage.Table
{
    public class UserTextNotification : TableStorageEntity
    {
        public string Title { get; set; }
        public string MessageText { get; set; }
        public DateTime MessageDate { get; set; }
    }

    public class UserTextNotificationContext : TableStorageDataServiceContext
    {
        public DataServiceQuery<UserTextNotification> UserNotifications
        {
            get
            {
                return this.CreateQuery<UserTextNotification>(RoleManager.GetConfigurationSetting("UserNotificationsTableName"));
            }
        }
    }
}
